package com.tl.sun.model;

import com.google.gson.annotations.SerializedName;

/**
 * Created by librabin on 16/10/27.
 */

public class UpdateInfo {


    private int versionCode;

    private String versionName;

    private String downloadUrl;

    @SerializedName("changelog")
    private String updateLogo;

    @SerializedName("update_open")
    private int updateOpen;

    public int getUpdateOpen() {
        return updateOpen;
    }

    public void setUpdateOpen(int updateOpen) {
        this.updateOpen = updateOpen;
    }

    public int getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getUpdateLogo() {
        return updateLogo;
    }

    public void setUpdateLogo(String updateLogo) {
        if (updateLogo == null) {
            updateLogo = "修复了部分bug";
        }
        this.updateLogo = updateLogo;
    }

    @Override
    public String toString() {
        return "UpdateInfo{" +
                "versionCode=" + versionCode +
                ", versionName='" + versionName + '\'' +
                ", downloadUrl='" + downloadUrl + '\'' +
                ", updateLogo='" + updateLogo + '\'' +
                ", updateOpen=" + updateOpen +
                '}';
    }
}
